package com.spring.gll.controller;

import com.spring.gll.service.impl.TestServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller("testController")
@RequestMapping("/tsc")
public class TestController {
    @Resource
    private TestServiceImpl testService;

    public TestServiceImpl getTestService() {
        return testService;
    }

    public void setTestService(TestServiceImpl testService) {
        this.testService = testService;
    }

    public void a(){
        testService.a();
        System.out.println("TestController a");
    }
    @RequestMapping("/uplode")
    public String uplode(){
        return "Uplode";
    }

    @RequestMapping("/uplode.a")
    public String uplode1(){
        return "Uplode";
    }

}

